<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增手刷机具分配')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-branchPos-add">
            <div class="form-group">
                <label class="col-sm-3 control-label  is-required">服务商编号：</label>
                <div class="col-sm-8">
                    <input name="leaderAgentNum" onclick="selectAllAgent()" readonly id="teamAgentNum"  type="text" class="form-control" required>
                    <i class="fa fa-search" style="margin-top: -22px;margin-right:3px;float:right;"></i>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">服务商名称：</label>
                <div class="col-sm-8">
                    <input name="leaderAgentName" class="form-control" id="teamAgentName" type="text" required readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">冻结原因：</label>
                <div class="col-sm-8" >
                    <textarea rows="10" cols="10"  name="note"  class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "frozenAgent/frozenAgent"
        var agentAll = ctx + "team/teamYlInfo"
        $("#form-branchPos-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-branchPos-add').serialize());
            }
        }


        /**
         * 选择服务商
         */
        function selectAllAgent() {
            var url =agentAll+ "/selectAllAgent";
            $.modal.open("选择服务商" , url, '1100',"500");
        }

    </script>
</body>
</html>